package com.fsc.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fsc.entity.domain.TeacherInfo;
import com.fsc.entity.dto.TeacherDTO;
import com.fsc.service.TeacherInfoService;
import com.fsc.mapper.TeacherInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 86183
* @description 针对表【teacher_info(老师信息表)】的数据库操作Service实现
* @createDate 2024-06-02 13:15:22
*/
@Service
public class TeacherInfoServiceImpl extends ServiceImpl<TeacherInfoMapper, TeacherInfo>
    implements TeacherInfoService{

    @Autowired
    private TeacherInfoMapper teacherInfoMapper;

    public TeacherInfo select(int teacherId){
        return teacherInfoMapper.getTeacherById(teacherId);
    }

    public void update(TeacherDTO teacherDTO){
        teacherInfoMapper.update(teacherDTO);
    }
}




